package com.zp.self.BIO;

import java.net.*;
import java.io.*;

public class TimeServer {

    public static void main(String args[]) throws IOException {

        try (ServerSocket server = new ServerSocket(8080)) {
            while (true) {
                Socket socket = server.accept();
                new Thread(new TimeServerHandler(socket)).start();
            }
        }
    }
}
